<template>
	<view
		style="width: 100%;height: 100vh;position: fixed;top: 0;left: 0;z-index: 100001;background-color: rgba(0, 0, 0, 0.5);"
		v-show="isShowActi" @click="closePopActi()">
		<view style="width: 100%;height: 500rpx;display: grid;place-items: center;margin-top: calc(50vh - 300rpx);">
			<image :src="imgUrl" style="width: 500rpx;" mode="widthFix" @click="toActivity()">
			</image>
			<!-- 			<image :src="closeImg" style="width: 60rpx;height: 60rpx;;margin-top: 20rpx;" lazy-load
				@click="closePopActi()">
			</image> -->
		</view>
	</view>
</template>

<script>
	import animationType from '@/utils/animationType.js'
	import {
		getSecondPop,
	} from '@/api/home.js';
	export default {
		props: {},
		data() {
			return {
				imgUrl: '',
				pic: '',
				isShowActi: false,
				closeImg: 'https://pic.mae.vip//crmebimage/public/maintain/2024/09/10/71f1a9aba07d46fdb88b81562904236fwes70ule49.png',
				userId: '',
				token: '',
			}
		},
		mounted() {
			let that = this;

		},
		onLoad(options) {
			let that = this;

		},
		onShow() {
			let that = this;

		},
		methods: {
			showPop(url) {
				let that = this;
				that.isShowActi = true;
				that.imgUrl = url;
			},
			closePopActi() {
				this.isShowActi = false;
			},
			getSecondPop() {
				let that = this;
			},
			toActivity(info) {
				let that = this;
				console.log(11212121)
				let platform = uni.getSystemInfoSync().platform; //手机类型
				console.log(platform);
				if (platform == 'ios') {
					window.webkit.messageHandlers.goWeChat.postMessage('goWechatPay');
				}
				if (platform == 'android') {
					window.location.href = 'goWechatPay';
				}
			},
		},
	}
</script>

<style lang="scss" scoped>

</style>